package com.qc.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

public class PhoneVersionEntity extends BaseEntity {

	private long versionId;//自增长
	private String versionNumber; //版本号
	private int type; //类型 1/iOS 2/Android
	
	public static PhoneVersionEntity getInstance(ResultSet rs) throws SQLException {
		PhoneVersionEntity entity = new PhoneVersionEntity();

		entity.setVersionId(rs.getLong("version_id"));
		entity.setVersionNumber(rs.getString("version_number"));
		entity.setType(rs.getInt("type"));

		return entity;
	}
	public long getVersionId() {
		return versionId;
	}
	public void setVersionId(long versionId) {
		this.versionId = versionId;
	}
	public String getVersionNumber() {
		return versionNumber;
	}
	public void setVersionNumber(String versionNumber) {
		this.versionNumber = versionNumber;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	
	
}
